3.188 \(\int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+i x^6+j x^7}{a-b x^4} \, dx\)

Optimal. Leaf size=205 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{(a j+b f) \log \left (a-b x^4\right )}{4 b^2}-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{i x^3}{3 b}-\frac{j x^4}{4 b} \]

[Out]

-((g*x)/b) - (h*x^2)/(2*b) - (i*x^3)/(3*b) - (j*x^4)/(4*b) - ((b*e - (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcT
an[(b^(1/4)*x)/a^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*e + (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTanh[(b^(1/4)*x
)/a^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*d + a*h)*ArcTanh[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*b^(3/2)) - ((b*f + a
*j)*Log[a - b*x^4])/(4*b^2)

________________________________________________________________________________________

Rubi [A]  time = 0.313444, antiderivative size = 205, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 46, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.196, Rules used = {1885, 1887, 1167, 205, 208, 1819, 1810, 635, 260} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{(a j+b f) \log \left (a-b x^4\right )}{4 b^2}-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{i x^3}{3 b}-\frac{j x^4}{4 b} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6 + j*x^7)/(a - b*x^4),x]

[Out]

-((g*x)/b) - (h*x^2)/(2*b) - (i*x^3)/(3*b) - (j*x^4)/(4*b) - ((b*e - (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcT
an[(b^(1/4)*x)/a^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*e + (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTanh[(b^(1/4)*x
)/a^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*d + a*h)*ArcTanh[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*b^(3/2)) - ((b*f + a
*j)*Log[a - b*x^4])/(4*b^2)

Rule 1885

Int[(Pq_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Module[{q = Expon[Pq, x], j, k}, Int[Sum[x^j*Sum[Coeff[P
q, x, j + (k*n)/2]*x^((k*n)/2), {k, 0, (2*(q - j))/n + 1}]*(a + b*x^n)^p, {j, 0, n/2 - 1}], x]] /; FreeQ[{a, b
, p}, x] && PolyQ[Pq, x] && IGtQ[n/2, 0] &&  !PolyQ[Pq, x^(n/2)]

Rule 1887

Int[(Pq_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Int[ExpandIntegrand[Pq/(a + b*x^n), x], x] /; FreeQ[{a, b}, x
] && PolyQ[Pq, x] && IntegerQ[n]

Rule 1167

Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[-(a*c), 2]}, Dist[e/2 + (c*d)/(2*q)
, Int[1/(-q + c*x^2), x], x] + Dist[e/2 - (c*d)/(2*q), Int[1/(q + c*x^2), x], x]] /; FreeQ[{a, c, d, e}, x] &&
 NeQ[c*d^2 - a*e^2, 0] && PosQ[-(a*c)]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rule 1819

Int[(Pq_)*(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Dist[1/(m + 1), Subst[Int[SubstFor[x^(m + 1)
, Pq, x]*(a + b*x^Simplify[n/(m + 1)])^p, x], x, x^(m + 1)], x] /; FreeQ[{a, b, m, n, p}, x] && NeQ[m, -1] &&
IGtQ[Simplify[n/(m + 1)], 0] && PolyQ[Pq, x^(m + 1)]

Rule 1810

Int[(Pq_)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x^2)^p, x], x] /; FreeQ[{a,
b}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rule 635

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Dist[d, Int[1/(a + c*x^2), x], x] + Dist[e, Int[x/
(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] &&  !NiceSqrtQ[-(a*c)]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rubi steps

\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+188 x^6+j x^7}{a-b x^4} \, dx &=\int \left (\frac{c+e x^2+g x^4+188 x^6}{a-b x^4}+\frac{x \left (d+f x^2+h x^4+j x^6\right )}{a-b x^4}\right ) \, dx\\ &=\int \frac{c+e x^2+g x^4+188 x^6}{a-b x^4} \, dx+\int \frac{x \left (d+f x^2+h x^4+j x^6\right )}{a-b x^4} \, dx\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{d+f x+h x^2+j x^3}{a-b x^2} \, dx,x,x^2\right )+\int \left (-\frac{g}{b}-\frac{188 x^2}{b}+\frac{b c+a g+(188 a+b e) x^2}{b \left (a-b x^4\right )}\right ) \, dx\\ &=-\frac{g x}{b}-\frac{188 x^3}{3 b}+\frac{1}{2} \operatorname{Subst}\left (\int \left (-\frac{h}{b}-\frac{j x}{b}+\frac{b d+a h+(b f+a j) x}{b \left (a-b x^2\right )}\right ) \, dx,x,x^2\right )+\frac{\int \frac{b c+a g+(188 a+b e) x^2}{a-b x^4} \, dx}{b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{188 x^3}{3 b}-\frac{j x^4}{4 b}+\frac{\operatorname{Subst}\left (\int \frac{b d+a h+(b f+a j) x}{a-b x^2} \, dx,x,x^2\right )}{2 b}+\frac{\left (188 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{-\sqrt{a} \sqrt{b}-b x^2} \, dx}{2 b}+\frac{\left (188 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{\sqrt{a} \sqrt{b}-b x^2} \, dx}{2 b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{188 x^3}{3 b}-\frac{j x^4}{4 b}-\frac{\left (188 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\left (188 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(b d+a h) \operatorname{Subst}\left (\int \frac{1}{a-b x^2} \, dx,x,x^2\right )}{2 b}+\frac{(b f+a j) \operatorname{Subst}\left (\int \frac{x}{a-b x^2} \, dx,x,x^2\right )}{2 b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{188 x^3}{3 b}-\frac{j x^4}{4 b}-\frac{\left (188 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\left (188 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(b d+a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{(b f+a j) \log \left (a-b x^4\right )}{4 b^2}\\ \end{align*}

Mathematica [A]  time = 0.351059, size = 318, normalized size = 1.55 \[ \frac{-\frac{3 \log \left (\sqrt [4]{a}-\sqrt [4]{b} x\right ) \left (a^{5/4} \sqrt [4]{b} h+a^{3/2} i+\sqrt [4]{a} b^{5/4} d+\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{3 \log \left (\sqrt [4]{a}+\sqrt [4]{b} x\right ) \left (-a^{5/4} \sqrt [4]{b} h+a^{3/2} i-\sqrt [4]{a} b^{5/4} d+\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{6 \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (a^{3/2} (-i)-\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{3 \sqrt [4]{b} (a h+b d) \log \left (\sqrt{a}+\sqrt{b} x^2\right )}{\sqrt{a}}-\frac{3 (a j+b f) \log \left (a-b x^4\right )}{\sqrt [4]{b}}-12 b^{3/4} g x-6 b^{3/4} h x^2-4 b^{3/4} i x^3-3 b^{3/4} j x^4}{12 b^{7/4}} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6 + j*x^7)/(a - b*x^4),x]

[Out]

(-12*b^(3/4)*g*x - 6*b^(3/4)*h*x^2 - 4*b^(3/4)*i*x^3 - 3*b^(3/4)*j*x^4 + (6*(b^(3/2)*c - Sqrt[a]*b*e + a*Sqrt[
b]*g - a^(3/2)*i)*ArcTan[(b^(1/4)*x)/a^(1/4)])/a^(3/4) - (3*(b^(3/2)*c + a^(1/4)*b^(5/4)*d + Sqrt[a]*b*e + a*S
qrt[b]*g + a^(5/4)*b^(1/4)*h + a^(3/2)*i)*Log[a^(1/4) - b^(1/4)*x])/a^(3/4) + (3*(b^(3/2)*c - a^(1/4)*b^(5/4)*
d + Sqrt[a]*b*e + a*Sqrt[b]*g - a^(5/4)*b^(1/4)*h + a^(3/2)*i)*Log[a^(1/4) + b^(1/4)*x])/a^(3/4) + (3*b^(1/4)*
(b*d + a*h)*Log[Sqrt[a] + Sqrt[b]*x^2])/Sqrt[a] - (3*(b*f + a*j)*Log[a - b*x^4])/b^(1/4))/(12*b^(7/4))

________________________________________________________________________________________

Maple [B]  time = 0.045, size = 393, normalized size = 1.9 \begin{align*} -{\frac{j{x}^{4}}{4\,b}}-{\frac{i{x}^{3}}{3\,b}}-{\frac{h{x}^{2}}{2\,b}}-{\frac{gx}{b}}+{\frac{g}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{c}{2\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{g}{4\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c}{4\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{ah}{4\,b}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{d}{4}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{ai}{2\,{b}^{2}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{e}{2\,b}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{ai}{4\,{b}^{2}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e}{4\,b}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{\ln \left ( b{x}^{4}-a \right ) aj}{4\,{b}^{2}}}-{\frac{f\ln \left ( b{x}^{4}-a \right ) }{4\,b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((j*x^7+i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x)

[Out]

-1/4*j*x^4/b-1/3*i*x^3/b-1/2*h*x^2/b-g*x/b+1/2/b*(1/b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))*g+1/2*c*(1/b*a)^(1/4)/a
*arctan(x/(1/b*a)^(1/4))+1/4/b*(1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))*g+1/4*c*(1/b*a)^(1/4)/a*l
n((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))-1/4/b/(a*b)^(1/2)*ln((-a+x^2*(a*b)^(1/2))/(-a-x^2*(a*b)^(1/2)))*a*h-1/4
*d/(a*b)^(1/2)*ln((-a+x^2*(a*b)^(1/2))/(-a-x^2*(a*b)^(1/2)))-1/2/b^2/(1/b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))*a*i
-1/2*e/b/(1/b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))+1/4/b^2/(1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))*a
*i+1/4*e/b/(1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))-1/4/b^2*ln(b*x^4-a)*a*j-1/4/b*f*ln(b*x^4-a)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x^7+i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x^7+i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x**7+i*x**6+h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(-b*x**4+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.10172, size = 828, normalized size = 4.04 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((j*x^7+i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="giac")

[Out]

1/8*i*(2*sqrt(2)*(-a*b^3)^(3/4)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(-a/b)^(1/4))/(-a/b)^(1/4))/b^4 - sqrt(2)*(-
a*b^3)^(3/4)*log(x^2 + sqrt(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/b^4) + 1/8*i*(2*sqrt(2)*(-a*b^3)^(3/4)*arctan(1/2*
sqrt(2)*(2*x - sqrt(2)*(-a/b)^(1/4))/(-a/b)^(1/4))/b^4 + sqrt(2)*(-a*b^3)^(3/4)*log(x^2 - sqrt(2)*x*(-a/b)^(1/
4) + sqrt(-a/b))/b^4) - 1/4*(b*f + a*j)*log(abs(b*x^4 - a))/b^2 + 1/4*sqrt(2)*(sqrt(2)*sqrt(-a*b)*b^2*d - sqrt
(2)*sqrt(-a*b)*a*b*h + (-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g + (-a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x
 + sqrt(2)*(-a/b)^(1/4))/(-a/b)^(1/4))/(a*b^3) + 1/4*sqrt(2)*(sqrt(2)*sqrt(-a*b)*b^2*d - sqrt(2)*sqrt(-a*b)*a*
b*h + (-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g + (-a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x - sqrt(2)*(-a/b)
^(1/4))/(-a/b)^(1/4))/(a*b^3) + 1/8*sqrt(2)*((-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g - (-a*b^3)^(3/4)*e)*l
og(x^2 + sqrt(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/(a*b^3) - 1/8*sqrt(2)*((-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b
*g - (-a*b^3)^(3/4)*e)*log(x^2 - sqrt(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/(a*b^3) - 1/12*(3*b^3*j*x^4 + 4*b^3*i*x^
3 + 6*b^3*h*x^2 + 12*b^3*g*x)/b^4